package com.ruoyi.accounting.mapper;

import com.ruoyi.accounting.domain.AccCurrencyInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 币种Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-27
 */
@Mapper
public interface AccCurrencyInfoMapper {
    /**
     * 查询币种
     *
     * @param id 币种主键
     * @return 币种
     */
    public AccCurrencyInfo selectAccCurrencyInfoById(Long id);

    /**
     * 查询币种列表
     *
     * @param accCurrencyInfo 币种
     * @return 币种集合
     */
    public List<AccCurrencyInfo> selectAccCurrencyInfoList(AccCurrencyInfo accCurrencyInfo);

    /**
     * 新增币种
     *
     * @param accCurrencyInfo 币种
     * @return 结果
     */
    public int insertAccCurrencyInfo(AccCurrencyInfo accCurrencyInfo);

    /**
     * 修改币种
     *
     * @param accCurrencyInfo 币种
     * @return 结果
     */
    public int updateAccCurrencyInfo(AccCurrencyInfo accCurrencyInfo);

    /**
     * 删除币种
     *
     * @param id 币种主键
     * @return 结果
     */
    public int deleteAccCurrencyInfoById(Long id);

    /**
     * 批量删除币种
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAccCurrencyInfoByIds(Long[] ids);

    int insertAccCurrencyInfoList(@Param("accCurrencyInfos")List<AccCurrencyInfo> accCurrencyInfos);
}
